Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

383
Views
$array[]='something' analog in Laravel array session logic

I can create session array in Laravel only with defining key by hand using Session::put('items.key','1'), but I have a situation when I just need keys to be made automatically as I would use simple PHP function $items[]=value. How can I do this in Laravel session?

P.S. I have tried Session::put('items[]','1'), but it doesn't worked.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

sorry, I have find out, it works with Session::push('items', $value)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!